    	<table class="customers-table">
          <tr class="customers-table-head">
            	<td width="160px">الحالة</td>
                <td width="140px">الاسم</td>
                <td width="100px">الايجار اليومى</td>
                <td width="110px">الايجار الاسبوعى</td>
                <td width="100px">الايجار الشهرى</td>
                <td width="100px">العمليات</td>
            </tr>
           
                <?php if(!empty($aprts)) { ?>
                <?php foreach($aprts as $aprt) {
				$status=query("SELECT * FROM apart_status 
				WHERE status_id=?",$aprt['status']);
				?>
                
                <tr class="cell-parent">
                    <td ><img src="images/home-<?php echo $aprt['status'];?>-s.png"  title="<?php echo $status[0]['status_txt']; ?>"/> </td>
                    <td id="apartment_name"><?php echo $aprt['apart_name']; ?>  </td>
                    <td id="daily-rent"><?php echo $aprt['daily'.$period]; ;?></td>
                    <td id="weekly-rent"><?php echo $aprt['weekly'.$period]; ?></td>
                    <td id="monthly-rent" ><?php echo $aprt['monthly'.$period] ;?></td>
                    <td ><a href="#" style="color:#000" class="chosen-apartment" id="<?php echo $aprt['id']; ?>">أختر</a></td>
                </tr>
                <?php  }
                }else{
                  echo "<td colspan='6' class='red large' align=''>لا توجد نتائج</td>";
                } ?>
              
        </table>
